package com.groupbuying.store.dao;

import com.groupbuying.store.domain.StoreOpexRuleRelDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * 商户、运营规则关联表
 * @author ywxd
 * @email yuwenxiaodong@126.com
 * @date 2019-04-17 10:54:05
 */
@Component
@Mapper
public interface StoreOpexRuleRelDao {

    /**
     * Description 根据storeID获取门店运营规则 <br>
     *
     * @author Ywxd <br>
     * @param storeID
     * @return opexRuleID
     * @createDate 2019/4/18 17:11<br>
     **/
	String getOpexRuleByStoreID(String storeID);

	StoreOpexRuleRelDO get(Integer relId);
	
	List<StoreOpexRuleRelDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreOpexRuleRelDO storeOpexRuleRel);
	
	int update(StoreOpexRuleRelDO storeOpexRuleRel);
	
	int remove(Integer rel_id);
	
	int batchRemove(Integer[] relIds);
}
